package com.lframework.xingyun.promo.service.nthpiece;

import com.lframework.starter.web.core.service.BaseMpService;
import com.lframework.starter.web.core.components.resp.PageResult;
import com.lframework.xingyun.promo.entity.MarketingNthpiece;
import com.lframework.xingyun.promo.vo.nthpiece.CreateMarketingNthpieceVo;
import com.lframework.xingyun.promo.vo.nthpiece.QueryMarketingNthpieceVo;
import com.lframework.xingyun.promo.vo.nthpiece.UpdateMarketingNthpieceVo;

import java.util.List;

/**
 * 限时第N件活动表 Service
 */
public interface MarketingNthpieceService extends BaseMpService<MarketingNthpiece> {

    /**
     * 查询列表
     * @return
     */
    PageResult<MarketingNthpiece> queryPage(Integer pageIndex, Integer pageSize, QueryMarketingNthpieceVo vo);

    /**
     * 查询列表
     * @param vo
     * @return
     */
    List<MarketingNthpiece> queryList(QueryMarketingNthpieceVo vo);

    /**
     * 根据ID查询
     * @param id
     * @return
     */
    MarketingNthpiece findById(String id);

    /**
     * 创建
     * @param vo
     * @return
     */
    String create(CreateMarketingNthpieceVo vo);

    /**
     * 修改
     * @param vo
     */
    void update(UpdateMarketingNthpieceVo vo);

}

